package com.hp.his.charts.xml;

import javax.xml.bind.annotation.XmlAttribute;

/**
 * Each <category> element represents an x-axis data label.
 * 
 * In multi-series charts, it's necessary to provide an equal number of
 * <category> elements and data items (<set> elements within each <dataset>).
 * FusionCharts plots only those data items for which it could find a respective
 * <category> element.
 */
public class Category {

	/**
	 * This attribute determines the label for the data item. The label appears
	 * on the x-axis of chart.
	 */
	private String label;

	/**
	 * You can individually opt to show/hide labels of individual data items
	 * using this attribute.
	 */
	private String showLabel;

	/**
	 * The label of each category shows up on the x-axis. However, there might
	 * be cases where you want to display short label (or abbreviated label) on
	 * the axis and show the full label as tool tip. This attribute lets you
	 * specify the tool tip text for the label.
	 */
	private String toolText;
	
	public Category(){
		
	}
	
	public Category(String label) {
		this.label = label;
	}

	@XmlAttribute
	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	@XmlAttribute
	public String getShowLabel() {
		return showLabel;
	}

	public void setShowLabel(String showLabel) {
		this.showLabel = showLabel;
	}

	@XmlAttribute
	public String getToolText() {
		return toolText;
	}

	public void setToolText(String toolText) {
		this.toolText = toolText;
	}
	
}
